#ifndef _AF_H_
#define _AF_H_


#define AF_WIN_OFF              0x0000

#define AF_AUTO 			    0x00
#define AF_ONE_FOCUS 		    0x01
#define AF_MANUAL 			    0x02

#define AF_LIMT_10CM  		    0
#define AF_LIMT_30CM  		    1
#define AF_LIMT_1M  			2
#define AF_LIMT_1M5  		    3
#define AF_LIMT_3M  			4
#define AF_LIMT_6M  			5
#define AF_LIMT_10M			    6
#define AF_LIMT_20M			    7
#define AF_LIMT_50M			    8
#define AF_LIMT_INF  		    9



#define	AF_NORMAL	            0
#define	AF_INTERVAL	            1
#define	AF_TRIGGER	            2


#define	AF_SENSE_LOW	        0
#define	AF_SENSE_MID	        1
#define	AF_SENSE_HIGH	        2


SW_UINT8  GetAFMode(void);
SW_INT    OneFocusT2(void);
SW_UINT32 GetAFVersion(void);
void AutoFocus(void);

void GetAFDOutputT2(SW_BOOL motor_run);
void GetAFD_Info(void);
SW_INT AFDebugProc(SW_UINT32 *buf);

#endif

